package com.iqiyi.pps.epg.core.model.ticket;

/**
 * Created by karkarrotxu on 2017/8/29.
 */

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import javax.persistence.*;
import java.sql.Timestamp;
@Entity
@Table(name = "ticket_history")
@Cache(usage = CacheConcurrencyStrategy.NONE)
public class TicketHistory {
    private long id;
    private long dataId;
    private int dataType;
    private String detail;
    private Timestamp addTime = new Timestamp(System.currentTimeMillis());
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    public long getId(){return this.id;}
    public void setId(long id){ this.id=id ;}

    @Column(name = "data_id")
    public long getDataId() {
        return dataId;
    }

    public void setDataId(long dataId) {
        this.dataId = dataId;
    }
    @Column(name = "data_type")
    public int getDataType(){return this.dataType;}
    public void setDataType(int dataType){ this.dataType=dataType ;}
    @Column(name = "detail")
    public String getDetail(){return this.detail;}
    public void setDetail(String detail){ this.detail=detail ;}
    @Column(name = "add_time")
    public Timestamp getAddTime(){return this.addTime;}
    public void setAddTime(Timestamp addTime){ this.addTime=addTime ;}
}